package org.example.ioc_start;

import org.example.ioc_start.Controller.SayHIController;
import org.example.ioc_start.Controller.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;


public class IocStartApplication {

    public static void main(String[] args) {

        ApplicationContext context = SpringApplication.run(IocStartApplication.class, args);

        SayHIController controller = context.getBean(SayHIController.class);
        controller.doController();
//        UserController userController = (UserController) context.getBean("userController");
//        userController.doUserController();
    }

}
